import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
//引入组件
import { IndexComponent } from './index/index.component';
import { MallclassComponent } from './mallclass/mallclass.component';
import { JyListComponent } from './jy-list/jy-list.component';
import { LiveTvComponent } from './live-tv/live-tv.component';
import { MyComponent } from './my/my.component'
import { JiuyuanXqComponent } from './jiuyuan-xq/jiuyuan-xq.component'
import { BaoxianComponent } from './baoxian/baoxian.component'
import { BaoxianBijiaComponent } from './baoxian-bijia/baoxian-bijia.component'
import { BaoxianGoumComponent } from './baoxian-goum/baoxian-goum.component'
import { BaoxianLipeiComponent } from './baoxian-lipei/baoxian-lipei.component'
// --
import { MallListComponent } from './mall-list/mall-list.component'; //加载的组件
import { MallListXqComponent } from './mall-list-xq/mall-list-xq.component';
import { MallShopComponent } from './mall-shop/mall-shop.component';
import { MallShopClassComponent } from './mall-shop-class/mall-shop-class.component';
import { MallShopXqComponent } from './mall-shop-xq/mall-shop-xq.component';
import { MyDdListComponent } from './my-dd-list/my-dd-list.component'; //加载的组件
// --
import { MyDdListXqComponent } from './my-dd-list-xq/my-dd-list-xq.component';
import { MyShoucComponent } from './my-shouc/my-shouc.component';
import { MySzComponent } from './my-sz/my-sz.component';
import { MySzAnquanComponent } from './my-sz-anquan/my-sz-anquan.component';
import { MySzAnquanMsComponent } from './my-sz-anquan-ms/my-sz-anquan-ms.component';
import { MySzAnquanNcComponent } from './my-sz-anquan-nc/my-sz-anquan-nc.component';
import { MySzDzComponent } from './my-sz-dz/my-sz-dz.component';
import { MySzDzDizhiComponent } from './my-sz-dz-dizhi/my-sz-dz-dizhi.component';

import { MySzDzNewComponent } from './my-sz-dz-new/my-sz-dz-new.component';
import { MySzFankComponent } from './my-sz-fank/my-sz-fank.component';
import { PeijianListComponent } from './peijian-list/peijian-list.component';
import { PeijianListXqComponent } from './peijian-list-xq/peijian-list-xq.component';
import { QicChuzComponent } from './qic-chuz/qic-chuz.component';
import { ReportComponent } from './report/report.component';
import { ReportXqComponent } from './report-xq/report-xq.component';
import { SignZcComponent } from './sign-zc/sign-zc.component';

// import { ReportComponent } from './report/report.component';
const routes: Routes = [
  {
    path: '',
    component: IndexComponent,
  }, {
    path: 'mallclass',
    component: MallclassComponent
  }, {
    path: 'jy-list',
    component: JyListComponent
  }, {
    path: 'live_tv',
    component: LiveTvComponent
  }, {
    path: 'my',
    component: MyComponent
  }, {
    path: 'jiuyuan_xq',
    component: JiuyuanXqComponent
  }, {
    path: 'baoxian',
    component: BaoxianComponent
  }, {
    path: 'baoxian_bijia',
    component: BaoxianBijiaComponent
  }, {
    path: 'baoxian_goum',
    component: BaoxianGoumComponent
  }, {
    path: 'baoxian_lipei',
    component: BaoxianLipeiComponent
  },//--
  {
    path: 'mall-list',
    component: MallListComponent
  },
  {
    path: 'mall-list-xq',
    component: MallListXqComponent
  },
  {
    path: 'mall-shop',
    component: MallShopComponent
  },
  {
    path: 'mall-shop-class',
    component: MallShopClassComponent
  },
  {
    path: 'mall-shop-xq',
    component: MallShopXqComponent
  },

  {
    path: 'my-dd-list',
    component: MyDdListComponent
  },//--
  {
    path: 'my-dd-list-xq',
    component: MyDdListXqComponent
  },
  {
    path: 'my-shouc',
    component: MyShoucComponent
  },
  {
    path: 'my-sz',
    component: MySzComponent
  }, {
    path: 'my-sz-anquan',
    component: MySzAnquanComponent
  }, {
    path: 'my-sz-anquan-ms',
    component: MySzAnquanMsComponent
  }, {
    path: 'my-sz-anquan-nc',
    component: MySzAnquanNcComponent
  }, {
    path: 'my-sz-dz',
    component: MySzDzComponent
  }, {
    path: 'my-sz-dz-dizhi',
    component: MySzDzDizhiComponent
  },//--
  {
    path: 'my-sz-dz-new',
    component: MySzDzNewComponent
  }, {
    path: 'my-sz-fank',
    component: MySzFankComponent
  }, {
    path: 'peijian-list',
    component: PeijianListComponent
  }, {
    path: 'peijian-list-xq',
    component: PeijianListXqComponent
  }, {
    path: 'qic-chuz',
    component: QicChuzComponent
  }, {
    path: 'report',
    component: ReportComponent
  }, {
    path: 'report-xq',
    component: ReportXqComponent
  }, {
    path: 'sign-zc',
    component: SignZcComponent
  },
];

@NgModule({//装饰器
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule]
})
export class AppRoutingModule { }
